package service.mystore;

import entity.*;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author oahner
 * @create 2022-04-16 15:42
 */
@ResponseBody
@CrossOrigin
public interface MyStoreorderService {

    /**
     * 获取我的门店订单列表
     * @param outorderPage
     * @return
     */
    @RequestMapping("mystoreorder/getMyOutorder")
    public ResponseMessage getMyOutorder(@RequestBody Map<String,Object> outorderPage);

    /**
     * 获取我的门店订单详情
     * @param outorderinfo
     * @return
     */
    @RequestMapping("mystoreorder/getMyOutorderInfo")
    public ResponseMessage getMyOutorderInfo(@RequestBody Outorderinfo outorderinfo);

    /**
     * 签收我的门店订单
     * @param outorder
     * @return
     */
    @RequestMapping("mystoreorder/signMyOutorder")
    public ResponseMessage signMyOutorder(@RequestBody Outorder outorder);


    /**
     * 获取商品分类
     * @return
     */
    @RequestMapping("mystoreorder/getProductCategory")
    public ResponseMessage getProductCategory();


    /**
     * 根据分类获取商品
     * @return
     */
    @RequestMapping("mystoreorder/getProductByCategory")
    public ResponseMessage getProductByCategory(@RequestBody Map<String,Object> productPage);

    /**
     * 下单（订单和详情）
     * @return
     */
    @RequestMapping("mystoreorder/addStoreOrder")
    public ResponseMessage addStoreOrder(@RequestBody Map<String,Object> order);

    /**
     * 退货单
     * @return
     */
    @RequestMapping("mystoreorder/addReturnOrder")
    public ResponseMessage addReturnOrder(@RequestBody Map<String, Object> returnInfo);

    /**
     * 我的订单支付
     * @param outorder
     * @return
     */
    @RequestMapping("mystoreorder/payMyOutorder")
    public ResponseMessage payMyOutorder(Outorder outorder);

    /**
     * 增加门店账单
     * @param storebill
     */
    @RequestMapping("mystoreorder/addStoreBill")
    public void addStoreBill(Storebill storebill);

}
